#ifndef _FLASH_DRIVER_H_
#define _FLASH_DRIVER_H_

#include <string>

#include "../sleipner_config.h"

#ifdef _PLATFORM_WII// Allan: no flash-support on wii for now

namespace flash
{
class FlashDriver
{
public:
	FlashDriver(){};
	~FlashDriver(){};
	void*		Load(const std::string& File) { return NULL; };
};
};
#else

class tu_file;

#include "gameswf/gameswf_types.h"
#include "gameswf/gameswf_impl.h"
#include "gameswf/gameswf_root.h"
#include "gameswf/gameswf_freetype.h"
#include "gameswf/gameswf_player.h"

	

namespace flash
{
class FlashDriver
{
public:
	FlashDriver();
	~FlashDriver();

	void							Init();
	gameswf::gc_ptr<gameswf::root>		Load(const std::string& File);

private:
// callbacks
	static void	log_callback(bool error, const char* message);
	static tu_file*	file_opener(const char* url);
	static void	fs_callback(gameswf::character* movie, const char* command, const char* arg);
	

// handlers
	gameswf::sound_handler*				m_pSound;
	gameswf::render_handler*			m_pRender;
	gameswf::gc_ptr<gameswf::player>	m_pPlayer;
};

}	//namespace flash


#endif // !_PLATFORM_WII


#endif // _FLASH_DRIVER_H_